package com.we.wecc.us.mid.model.in;

import com.we.wecc.us.db.model.UserCoinAddress;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.BeanUtils;

@ApiModel("用户提币地址-入")
public class UserCoinAddressIn {

    @ApiModelProperty("地址id,添加不用传，修改必传")
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("收货地址")
    private String address;

    @ApiModelProperty("标签")
    private String tag;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public UserCoinAddress toUserCoinAddress(){
        UserCoinAddress ua = new UserCoinAddress();
        BeanUtils.copyProperties(this, ua);
        return ua;
    }
}
